package cn.com.idmy.auth.rbac;

import cn.com.idmy.auth.exception.AuthException;
import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(fluent = true)
public class RbacPermissionException extends AuthException {
    private final String permission;
    private final long accountType;

    public RbacPermissionException(String permission, long accountType) {
        super("无此权限：" + permission);
        this.permission = permission;
        this.accountType = accountType;
    }
}
